package com.sofaguest.service;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.sofaguest.entry.SofaResult;

public interface SofaService {

    public SofaResult qrySimpleSofa(String address, String sex, int minAge, int maxAge, int pernum);

    public SofaResult qrySofaByHostId(String hostId);

    public SofaResult qrySofa(String sofaId);

    public SofaResult addSofaEmg(@RequestParam("sofapic") MultipartFile sofapic, HttpServletRequest request,
            HttpServletResponse response) throws IOException;

    public SofaResult addSofa(String sofaId, String hostId, String sofaname, String sofaAddress, String sofaType,
            String maxper, String sexlim, String agelim, String linkTel, String mail, String mixday, String baseres,
            String explain);

    public SofaResult qrySofaList();

    public SofaResult getSofaList(int byTimeTag);
}
